import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex)
const store = new Vuex.Store({
  state: {
    value: ''
  },
  getters: {
    value (state) {
      return state.value
    }
  },
  mutations: {
    SET_VALUE (state, params) {
      state.value = params
    }
  },
  actions: {
    testAction ({commit}, value) {
      return value
    }
  }
})

export default store
